package com.vehicle.mq.message;

import com.vehicle.mq.constant.EventCommandEnum;

import java.io.Serializable;

/**
 * Created by yantingbin on 2017/12/1.
 */
public class MailMessage extends BaseMessage implements Serializable {
    private static final long serialVersionUID = 7585827592578372008L;
    private String id;
    private String message;
    private byte cmd;

    public MailMessage() {
        cmd = EventCommandEnum.MAIL.getCmd();
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    @Override
    public byte getCommand() {
        return cmd;
    }

    @Override
    public long getSerialVersionUID() {
        return serialVersionUID;
    }

    @Override
    public String toString() {
        return "MailMessage{" +
                "id='" + id + '\'' +
                ", message='" + message + '\'' +
                ", cmd=" + cmd +
                '}';
    }
}
